Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Reset the log context after each worker loop #37865

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

themsaid
Copy link
Member

No description provided.

@GrahamCampbell GrahamCampbell changed the title [8.z] Reset the log context after each worker loop [8.x] Reset the log context after each worker loop Jun 30, 2021
@@ -167,6 +167,10 @@ protected function registerWorker()
};

$resetScope = function () use ($app) {
if (method_exists($app['log']->driver(), 'withoutContext')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we have an interface here instead of method exists checks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants